<?php echo $this->element('body_help');?>
<?php echo $this->element('breadcrumb');?>
<div class="wrap">
<div id="icon-users" class="icon32"><br></div>
<h2>
	<?php __('Sửa thông tin người dùng');?>
	<a class="button add-new-h2" href="<?php echo $this->webroot;?>users"><?php __('Người dùng');?></a>
</h2>
<?php echo $this->Session->flash();?>
<br/>
<div id="pageFormContent">
<div id="form_project">
<div class="users form">
<?php echo $this->Form->create('User');?>
	<fieldset>
	<?php
		echo $this->Form->input('id',array('label'=>'Mã'));
		echo $this->Form->input('group_id',array('class'=>'required','readonly'=>true));
		echo $this->Form->input('username',array('minlength'=>'4','class'=>'required','label'=>'Tên đăng nhập'));
	
		//echo $this->Form->input('password',array('readonly'=>true,'type'=>'hidden','class'=>'required','label'=>'Mật khẩu'));
		echo $this->Form->input('password_new',array('class'=>'required','label'=>'Mật khẩu mới'));
		echo $this->Form->input('name',array('class'=>'required','label'=>'Tên Người dùng'));
		echo $this->Form->input('email',array('class'=>'required email','label'=>'Email'));
		echo $this->Form->input('address',array('class'=>'required','label'=>'Địa chỉ'));
		echo $datePicker->picker('brith',array('class'=>'data_picker','Ngày Sinh')); 
		echo '<br/>';
		echo $this->Form->input('phone',array('label'=>'Điện thoại'));
		echo $this->Form->input('class_student', array('label'=>'Lớp'));
		//echo $this->Form->input('temp_pass',array('label'=>'Mật khẩu phục hồi'));
		echo $this->Form->input('actived', array('label'=>'Thực thi'));
		
	?>
	</fieldset>
<?php echo $this->Form->end(__('Cập nhật', true));?>
</div>
<script> 
	Calendar.setup({trigger: "UserBrith", inputField: "UserBrith", onSelect   : function() { this.hide() } }); 
	$(document).ready(function()    {
            $('#UserAddForm').validate();
        });

</script>

<br class="clear">
</div>
<div class="clear"></div>
</div>